import { App } from 'vue'
import {
  Swipe,
  SwipeItem,
  Button,
  Popup,
  Loading,
  Icon,
  Search,
  Form,
  Field,
  CellGroup,
  Checkbox,
  CheckboxGroup,
  Grid,
  GridItem,
  Tab,
  Tabs
} from 'vant'
import { Sticky } from 'vant'
const components = [
  Swipe,
  SwipeItem,
  Button,
  Sticky,
  Popup,
  Loading,
  Icon,
  Search,
  Form,
  Field,
  CellGroup,
  Checkbox,
  CheckboxGroup,
  Grid,
  GridItem,
  Tab,
  Tabs
]

export default function (app: App): void {
  for (const component of components) {
    app.component(component.name, component)
  }
}
